package cn.sourcespro.shiro.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * security
 *
 * @author zhanghaowei
 * @date 2018/7/12
 */
@RestController
public class IndexController {

    @RequiresRoles("app")
    @GetMapping("index")
    String index(){
        return "ok";
    }

}
